package com.bupt.film.entity;

import java.util.Date;
import javax.persistence.*;

@Table(name = "films")
public class Film {
    @Id
    private Integer id;

    /**
     * film_<redis自增主键>
     */
    @Column(name = "film_id")
    private String filmId;

    private String name;

    @Column(name = "director_name")
    private String directorName;

    private String description;

    @Column(name = "film_types")
    private String filmTypes;

    @Column(name = "start_time")
    private Date startTime;

    @Column(name = "end_time")
    private Date endTime;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取film_<redis自增主键>
     *
     * @return film_id - film_<redis自增主键>
     */
    public String getFilmId() {
        return filmId;
    }

    /**
     * 设置film_<redis自增主键>
     *
     * @param filmId film_<redis自增主键>
     */
    public void setFilmId(String filmId) {
        this.filmId = filmId;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return director_name
     */
    public String getDirectorName() {
        return directorName;
    }

    /**
     * @param directorName
     */
    public void setDirectorName(String directorName) {
        this.directorName = directorName;
    }

    /**
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return film_types
     */
    public String getFilmTypes() {
        return filmTypes;
    }

    /**
     * @param filmTypes
     */
    public void setFilmTypes(String filmTypes) {
        this.filmTypes = filmTypes;
    }

    /**
     * @return start_time
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * @param startTime
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * @return end_time
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * @param endTime
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }
}